//
//  NumberContentViewController.m
//  sys_eric
//
//  Created by mac on 11-11-16.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "NumberContentViewController.h"
#import "ContentManageViewController.h"
#import "AdressBookViewController.h"
#import "NumberPoolViewController.h"


@implementation NumberContentViewController
@synthesize contentManageViewController;
@synthesize addressBookViewController;
@synthesize numberPoolViewController;


-(IBAction)enterContentView:(id)sender
{
    ContentManageViewController *contentController=[[ContentManageViewController alloc]init];
    self.contentManageViewController=contentController;
    [self.navigationController pushViewController:contentController animated:YES];
    [contentController release];
}

-(IBAction)enterAddressView:(id)sender
{
    AdressBookViewController *adressController=[[AdressBookViewController alloc]init];
    self.addressBookViewController =adressController;
    [self.navigationController pushViewController:adressController animated:YES];
    [adressController release];
    
}

-(IBAction)enterNumberpoolView:(id)sender
{
    NumberPoolViewController *numberController=[[NumberPoolViewController alloc]init];
    self.numberPoolViewController=numberController;
    [self.navigationController pushViewController:numberController animated:YES];
    [numberController release];
}


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)dealloc
{
    [contentManageViewController release];
    [addressBookViewController release];
    [numberPoolViewController release];
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    self.title=@"号码内容";
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    self.contentManageViewController=nil;
    self.addressBookViewController=nil;
    self.numberPoolViewController=nil;
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
